package com.bl.student.dao.repository;

import com.bl.student.dao.model.UserTagEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by yujingyi on 2018/1/29.
 */
public interface UserTagRepository extends JpaRepository<UserTagEntity, String> {
    List<UserTagEntity> findByUserId(String userId);

    void deleteByUserId(String userId);

    void deleteByTagName(String tagName);
}
